home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 - Homepage / CHIP.BIN / share / webmaste / csehtmlp / csehtmlp.exe / {app} / ParserRules / latex.xs < prev    next >
Encoding:
Text File  |  2002-04-22  |  1022 b   |  38 lines

  1. //Language: LaTex
  2. //Copyright (c) 1992-2002 Altium Limited             
  3. //All rights reserved.                               
  4. //http://www.dream-com.com                           
  5. //contact@dream-com.com                              
  6.  
  7. // states
  8. State=snormal
  9. State=scomment
  10. State=shtmltag
  11. State=sproperty
  12. // tokens
  13. Token=tnone
  14. Token=tgroupbegin
  15. Token=tcomment
  16. Token=tgroupend
  17. Token=tresword
  18. Token=tresword1
  19. Token=twhitespace
  20. //delims
  21. Delimiters=;.,:'"{}[]()?!@#$%^&*-+=|\/
  22.  
  23. snormal \\[a-z_A-Z][a-z_A-Z0-9]*  snormal tresword
  24.  
  25. //white space
  26. snormal #32*                      snormal   twhitespace
  27.  
  28. //comments
  29. snormal   \%                      scomment  tcomment 
  30. scomment [#1-#255]*               snormal   tcomment
  31. scomment $                        snormal   tcomment
  32.  
  33. snormal \{                         shtmltag tresword1
  34. shtmltag [^\}]*                    shtmltag tresword1
  35. shtmltag \\[a-z_A-Z][a-z_A-Z0-9]*  shtmltag tresword
  36. shtmltag \}                        snormal  tresword1
  37.  
  38.